/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */
package br.com.foxline.clinicplus.manager;

import br.com.foxline.clinicplus.entity.City;
import br.com.foxline.clinicplus.service.CityService;
import java.io.Serializable;
import java.util.List;
import javax.ejb.EJB;
import javax.faces.bean.ManagedBean;
import javax.faces.bean.SessionScoped;

/**
 *
 * @author roniere
 */
@ManagedBean
@SessionScoped
public class ManagerCity implements Serializable{
    
    @EJB
    CityService cityService;
    
    public List<City> autocomplete(String query){
        return cityService.autocomplete(query);
    }
    
}

